@echo on

set PROJECT_PATH=%~dp0..\
set CONF_DIR=%PROJECT_PATH%conf
set ARTIFACTID=am-gw-info-producer
set VERSION=1.0.0
set APPLICATION_OPTS=-Dspring.profiles.active=test -Dlogging.path=..\logs -Dspring.config.location=..\conf\application.properties
set JAVA_OPTS=-server -XX:+UseG1GC -Xms500m -Xmx2g -XX:MaxGCPauseMillis=500 -XX:+PrintGCTimeStamps

java %JAVA_OPTS%  %APPLICATION_OPTS% -jar ..\lib\%ARTIFACTID%-%VERSION%.jar
exit